package cn.vcjf.washcar.api.user.entity;

import cn.vcjf.washcar.common.web.JsonDateTypeConvert;
import cn.vcjf.washcar.common.web.PageModel;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.Date;

/**
 * <p>
    * 用户意见反馈表
    * </p>
 *
 * @author zhengzihang
 * @since 2018-07-26
 */
public class Feedback extends PageModel<Feedback> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户意见反馈表
     */
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 用户留言
     */
    private String message;

    /**
     * 图片
     */
    private String photo;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    @JsonSerialize(using=JsonDateTypeConvert.class)
    public Date getCreateDate() {
        return createTime;
    }

    @Override
    public void preInsert(){
        super.preInsert();
    }
    @Override
    public void preUpdate(){
        super.preInsert();
    }
    @Override
    public String toString() {
        return "Feedback{" +
        "id=" + id +
        ", userId=" + userId +
        ", message=" + message +
        ", photo=" + photo +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        "}";
    }
}
